package cj.hrm.dao;



import cj.hrm.entity.Status;
import org.apache.ibatis.annotations.Select;

import java.util.List;

import static cj.hrm.util.common.HrmConstants.STATUSTABLE;


public interface StatusDao {
	//查询
		@Select("select * from "+STATUSTABLE+" ")
		List<Status> selectAllStatus();
		
		@Select("select * from "+STATUSTABLE+" where name like CONCAT('%',#{content},'%')")
		List<Status> selectLikeAllStatus(String content);
		
		@Select("select * from "+STATUSTABLE+" where id = #{id}")
		Status selectById(Integer id);
}
